Vagrantfile 编写
这里提供了更多场景和示例,如果你对 Vagrantfile 还不熟悉,建议先查阅 官方文档。
📄️ Provider
Vagrant 支持多种 Provider 如 VirtualBox,VMware,Hyper-V,阿里云,AWS,Shell,Ansible,File 等等。
📄️ SSH
SSH 配置如:指定+用户名密码和添加公钥等
📄️ Networking
- https://developer.hashicorp.com/vagrant/docs/networking
📄️ Disks
- 参考文档:https://developer.hashicorp.com/vagrant/docs/disks/configuration
📄️ Synced Folders
参考文档:https://developer.hashicorp.com/vagrant/docs/synced-folders
下面是一些 vagrant 示例:
- https://github.com/wizardbyron/provisioners
- https://www.itwonderlab.com/en/ansible-kubernetes-vagrant-tutorial/
- https://kubernetes.io/blog/2019/03/15/kubernetes-setup-using-ansible-and-vagrant/
- https://github.com/kodekloudhub/certified-kubernetes-administrator-course/tree/master
- https://github.com/mmumshad/kubernetes-the-hard-way
- https://github.com/ddometita/mmumshad-kubernetes-the-hard-way/tree/master/vagrant
- https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster
- https://github.com/contiv/netplugin/blob/master/Vagrantfile